/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/12 10:28
 * @Copyright 博为峰
 */
public class ConsDemo01 {
    public static void main(String[] args) {
//        Person p1 = new Person();
//        p1.name = "张三";
//        p1.age = 20;
//
//        Person p2 = new Person();
//        p2.name = "李四";
//        p2.age = 30;

        Person p3 = new Person("王五", 50);
        System.out.println("---------------------------");
        System.out.println(p3);
        System.out.println(p3.name);

        Person p4 = new Person("赵六", 60);
        System.out.println(p4);
        System.out.println(p4.name);
        System.out.println("---------------------------");


    }
}
